<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>Title</title>
    <script type="text/javascript" src="<%=basePath%>js/jquery-1.12.3.min.js"></script>
    <link rel="stylesheet" href="<%=basePath%>css/error.css">
</head>
<body>
<script type="text/javascript">
    $(window).on('load', function () {
        if(${code==404}){
            $(".err404").css("display","block");
        }else {
            $(".err500").css("display","block");
        }

    });
</script>
<div class="error">
    <div class="err404">
        <img class="404img" src="<%=basePath%>images/timg404.jpg" alt="">
        <a class="home" href="toIndex1">返回首页</a>
    </div>
    <div class="err500">
        <img src="<%=basePath%>images/500(1).jpg" alt="">
        <a class="home2" href="login">返回首页>>></a>
    </div>
</div>

</body>
</html>

